package org.jiuling.kuaidi100.config;

/**
 * 快递100配置
 * @author 紫灵
 * @date 2024年02月27日 23时05分39秒
 */
public class Kuaidi100Config {

    /** 密钥 */
    private String key;
    /** 客户密钥 */
    private String customer;

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getCustomer() {
        return customer;
    }

    public void setCustomer(String customer) {
        this.customer = customer;
    }

    /**
     * 建造者
     * @return 建造者
     */
    public static Builder builder(){
        return new Builder();
    }

    /**
     * 建造者
     */
    public static class Builder{

        /** 快递100配置 */
        private final Kuaidi100Config kuaidi100Config;

        public Builder() {
            this.kuaidi100Config = new Kuaidi100Config();
        }

        public Builder addKey(String key) {
            kuaidi100Config.key = key;
            return this;
        }

        public Builder addCustomer(String customer) {
            kuaidi100Config.customer = customer;
            return this;
        }

        /**
         * 构建
         * @return 快递100配置
         */
        public Kuaidi100Config build(){
            return kuaidi100Config;
        }


    }

}
